<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta name="description" content="清镇安监后台管理系统">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title><sitemesh:write property="title"/></title>

    <style type="text/css">
        body, div, p, h1, h2, h3, h4, h5, h6, li, span, label, a {
            font-family: "Arial",
            "Microsoft YaHei", "微软雅黑",
            "SimHei", "黑体",
            "STHeiti", "华文黑体",
            "NSimSun", "新宋体",
            "SimSun", "宋体",
            "sans-serif";
        }
    </style>

    <link rel="shortcut icon" href="<%=basePath%>image/common/logo.jpg">

    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/bootstrap.css">
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/components/font-awesome/css/font-awesome.css">

    <%--[Page specific plugin styles]--%>
    <sitemesh:write property="smLink1"/>
    <%--[/Page specific plugin styles]--%>

    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-fonts.css">
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style">

    <!--[if lte IE 9]>
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-part2.css" class="ace-main-stylesheet">
    <![endif]-->

    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-skins.css">
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-rtl.css">

    <!--[if lte IE 9]>
    <link rel="stylesheet" href="<%=basePath%>js/lib/ace/assets/css/ace-ie.css">
    <![endif]-->

    <link rel="stylesheet" href="<%=basePath%>css/lib/iconfont/iconfont.css">
    <link rel="stylesheet" href="<%=basePath%>css/common/common.css">
    <link rel="stylesheet" href="<%=basePath%>css/main/main.css">
    <link rel="stylesheet" href="<%=basePath%>js/lib/jquery/jquery-toast/css/jquery.toast.css">

    <style type="text/css">
        .footer .footer-inner .footer-content a:hover {
            text-decoration: none;
        }
    </style>

    <sitemesh:write property="smLink2"/>

    <script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/ace-extra.js"></script>

    <!--[if lte IE 8]>
    <script type="text/javascript" src="<%=basePath%>js/lib/ace/components/html5shiv/dist/html5shiv.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>js/lib/ace/components/respond/dest/respond.min.js"></script>
    <![endif]-->
</head>

<body class="no-skin">
<div id="navbar" class="navbar navbar-default ace-save-state">
    <div class="navbar-container ace-save-state" id="navbar-container">
        <button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
            <span class="sr-only">切换侧边栏</span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>

            <span class="icon-bar"></span>
        </button>

        <div class="navbar-header pull-left">
            <a href="<%=basePath%>web/index.html" class="navbar-brand">
                <small>
                    <i class="iconfont icon-house f-s-20"></i>
                    清镇安监后台管理系统
                </small>
            </a>

            <a class="navbar-brand m-l-10 f-s-14" href="javascript:void(0);">
                在线人数：<span id="online-session-count" class="f-s-20">${onlineSessionCount}</span>
            </a>

            <a class="navbar-brand m-l-10 f-s-14" target="_blank" href="<%=basePath%>web/app/apk/download.html">下载【清镇安监APP】</a>
        </div>

        <div class="navbar-buttons navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li class="light-blue">
                    <shiro:hasPermission name="my:update">
                        <a title="我的信息" href="<%=basePath%>web/my.html">
                            <span class="block clearfix">
                                <span class="block pull-left m-0 p-0 width-42 height-42">
                                    <img class="nav-user-photo nav-user-photo-logo"
                                         src="<%=basePath%>image/common/user.png">
                                </span>

                                <span class="block pull-right nav-user-info m-0 p-0">
                                    <small>欢迎，</small>

                                    ${loginUser.loginName}
                                </span>
                            </span>
                        </a>
                    </shiro:hasPermission>

                    <shiro:lacksPermission name="my:update">
                        <a title="我的信息" href="javascript:void(0);">
                            <span class="block clearfix">
                                <span class="block pull-left m-0 p-0 width-42 height-42">
                                    <img class="nav-user-photo nav-user-photo-logo"
                                         src="<%=basePath%>image/common/user.png">
                                </span>

                                <span class="block pull-right nav-user-info m-0 p-0">
                                    <small>欢迎，</small>

                                    ${loginUser.loginName}
                                </span>
                            </span>
                        </a>
                    </shiro:lacksPermission>
                </li>

                <li class="purple dropdown-modal">
                    <a data-toggle="dropdown" class="dropdown-toggle" title="最新通知" href="javascript:void(0);">
                        <i class="ace-icon fa fa-bell icon-animated-bell"></i>
                        <span id="notice-count" class="badge badge-important">0</span>
                    </a>

                    <ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
                        <li class="dropdown-header">
                            <i class="ace-icon fa fa-exclamation-triangle"></i>
                            <span id="title-notice-count">0个通知</span>
                        </li>

                        <li class="dropdown-content">
                            <ul class="dropdown-menu dropdown-navbar navbar-pink">
                                <li>
                                    <a href="javascript:void(0);">
                                        <span class="block clearfix">
                                            <span class="pull-left">
                                                <i class="btn btn-xs no-hover btn-success fa fa-shopping-cart"></i>最新通知
                                            </span>

                                            <span id="new-dish-order-notice-count"
                                                  class="pull-right badge badge-danger">+0</span>
                                        </span>
                                    </a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                </li>

                <li class="red">
                    <a id="logout-btn" title="退出系统" href="javascript:void(0);">
                        <i class="ace-icon fa fa-power-off"></i>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</div>

<div class="main-container ace-save-state" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.loadState('main-container')
        } catch (e) {
        }
    </script>

    <div id="sidebar" class="sidebar responsive ace-save-state">
        <script type="text/javascript">
            try {
                ace.settings.loadState('sidebar')
            } catch (e) {
            }
        </script>

        <div class="sidebar-shortcuts" id="sidebar-shortcuts">
            <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                <button class="btn btn-success">
                    <i class="ace-icon fa fa-signal"></i>
                </button>

                <button class="btn btn-info">
                    <i class="ace-icon fa fa-pencil"></i>
                </button>

                <button class="btn btn-warning">
                    <i class="ace-icon fa fa-users"></i>
                </button>

                <button class="btn btn-danger">
                    <i class="ace-icon fa fa-cogs"></i>
                </button>
            </div>

            <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                <span class="btn btn-success"></span>

                <span class="btn btn-info"></span>

                <span class="btn btn-warning"></span>

                <span class="btn btn-danger"></span>
            </div>
        </div>

        <ul class="nav nav-list">
            <jsp:include page="/WEB-INF/jsp/menu.jsp"/>
        </ul>

        <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
        </div>
    </div>

    <div class="main-content">
        <div id="main-content-inner" class="main-content-inner">
            <sitemesh:write property="body"/>
        </div>
    </div>

    <div class="footer">
        <div class="footer-inner">
            <div class="footer-content">
                <span class="bigger-120">
                    <a class="blue bolder" target="_blank"
                       href="http://www.boilyun.com/">贵州博益科技发展有限公司</a>&copy;${copyrightYear}
                </span>
            </div>
        </div>
    </div>

    <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
        <i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
    </a>
</div>

<!--[if !IE]> -->
<script type="text/javascript" src="<%=basePath%>js/lib/ace/components/jquery/dist/jquery.js"></script>
<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/components/jquery.1x/dist/jquery.js"></script>
<![endif]-->

<script type="text/javascript">
    if ('ontouchstart' in document.documentElement) document.write("<script src='<%=basePath%>js/lib/ace/components/_mod/jquery.mobile.custom/jquery.mobile.custom.js'>" + "<" + "/script>");
</script>

<script type="text/javascript" src="<%=basePath%>js/lib/ace/components/bootstrap/dist/js/bootstrap.js"></script>

<%--[Page specific plugin scripts]--%>
<sitemesh:write property="smScript1"/>
<%--[/Page specific plugin scripts]--%>

<%--[Ace scripts]--%>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.scroller.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.colorpicker.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.fileinput.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.typeahead.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.wysiwyg.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.spinner.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.treeview.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.wizard.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/elements.aside.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.basics.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.scrolltop.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.ajax-content.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.touch-drag.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.sidebar.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.sidebar-scroll-1.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.submenu-hover.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.widget-box.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.settings.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.settings-rtl.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.settings-skin.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.widget-on-reload.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/ace/assets/js/src/ace.searchbox-autocomplete.js"></script>
<%--[/Ace scripts]--%>

<script type="text/javascript">
    // 全局服务器路径
    var globalBasePath = "<%=basePath%>";
    // 全局服务器路径（IP）
    var globalBasePathIp = "http://58.42.232.148:7788/qz-safekavass/";
    // 全局后台用户角色
    var globalLoginUserId = ${loginUser.id};
    // 全局后台用户角色
    var globalLoginUserRoles = "${loginUserRoles}".split("|");
    // 全局后台用户权限
    var globalLoginUserPerms = "${loginUserPerms}".split("|");
</script>

<%--
<script type="text/javascript" src="<%=basePath%>js/lib/sockjs/sockjs-1.1.1.min.js"></script>
--%>
<script type="text/javascript" src="<%=basePath%>js/common/utils.js"></script>
<script type="text/javascript" src="<%=basePath%>js/common/jquery.utils.js"></script>
<script type="text/javascript" src="<%=basePath%>js/lib/jquery/jquery-toast/js/jquery.toast.js"></script>
<script type="text/javascript" src="<%=basePath%>js/jsp/main.js"></script>

<sitemesh:write property="smScript2"/>

<sitemesh:write property="smModal"/>
</body>
</html>